package ooday04.practice;

public class Duck extends Animal implements Swim,LayEggs{

    Duck(String name ,int age ,String kind ,String color){
        super(name, age, kind, color);
    }

    @Override
    void eat() {
        System.out.println(name+"鸭子正在吃东西");
    }

    @Override
    public void swim() {
        System.out.println(name+"鸭子正在游泳");
    }

    @Override
    public void layEggs() {
        System.out.println(name +"鸭子正在下蛋");
    }
}
